/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.javatrainning.hieptq.btvn2;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 *
 * @author Hiep
 */
public class Bai3 {
    public static void main(String[] args) throws FileNotFoundException, IOException {
        BufferedReader br=new BufferedReader(new FileReader("B3.txt"));
        String n=br.readLine();
                       long l=Long.valueOf(n).longValue();
                       long k=l,p=0;
                       while(k!=0){
                              p=p*10 + k%10;
                              k=k/10;
                       } 
                       if(l==p) System.out.print(l + " la so thuan nghich ");
                       else System.out.print(l + "khong la so thuan nghich");    
       
    }
}
  
        
       
        
      

    

